<?php

return [
  'v1/findUser'     => ['api/msg_code/get_username_status', ['method'=>'get']],
  'v1/getCode'      => ['api/msg_code/get_code', ['method' => 'get']],
  'v1/wxlogin'      => ['api/login/wxlogin', ['method' => 'post']],
  'v1/register'     => ['api/login/register/', ['method' => 'post']],
  'v1/login'        => ['api/login/login/', ['method' => 'post' ]],
  'v1/avator'       => ['api/login/upload_head_img', ['method' => 'post']],
  'v1/setPwd'       => ['api/login/set_pwd', ['method' => 'post']],
  'v1/changePwd'    => ['api/login/change_pwd', ['method' => 'post']],
  'v1/findPwd'      => ['api/login/find_pwd', ['method'=>'post']],
  'v1/bindUsername' => ['api/login/bind_username', ['method'=>'post']],
  'v1/nickname'     => ['api/login/set_nickname', ['method'=>'post']],

  'v1/getAddress'   => ['api/address/get_address', ['method' => 'post']],
  'v1/addAddress'   => ['api/address/add_address', ['method' => 'post']],
  'v1/delAddress'   => ['api/address/del_address', ['method' => 'post']],
  'v1/getProvence'  => ['api/address/get_provence', ['method' => 'get']],
  'v1/getCity'      => ['api/address/get_city', ['method' => 'get']],
  'v1/getZone'      => ['api/address/get_zone', ['method' => 'get']],
  'v1/setDefault'   => ['api/address/set_default', ['method' => 'post']],

  'v1/userInfo'     => ['api/user/user_info', ['method' => 'post']],
  'v1/feedback'     => ['api/user/feedback', ['method' => 'post']],

  'v1/miniIndex'     => ['api/index/index', ['method' => 'get']],
  'v1/productPage'   => ['api/index/product_page', ['method' => 'get']],
  'v1/productDetail' => ['api/product/index', ['method' => 'post']],
  // 'v1/collection'    => ['api/product/collection', ['method' => 'post']],

  'v1/addToCart'     => ['api/shopping/add', ['method' => 'post']],
  'v1/listShopping'  => ['api/shopping/show', ['method' => 'post']],
  'v1/delShopping'   => ['api/shopping/delete', ['method' => 'post']],
  'v1/checkShop'     => ['api/shopping/check_shop', ['method'=> 'post']],

  'v1/topCategory'   => ['api/category/top_category', ['method' => 'get']],
  'v1/secCategory'   => ['api/category/second_category', ['method' => 'get']],

  'v1/search'        => ['api/search/search', ['method' => 'post']],

  'v1/checkFile'     => ['api/upload_file/check_existence', ['method' => 'get']],
  'v1/upload'        => ['api/upload_file/upload', ['method' => 'post']]
];

